package 接口测试;

import java.sql.Connection;
import java.sql.DriverManager;

public class TestOracleConnection {
    public static void main(String[] args) {
        String url = "jdbc:oracle:thin:@//1.95.215.81:1521/orcl";
        String user = "mchealth_qh";
        String password = "DHCCmchealth_qh#2025";

        try {
            Connection conn = DriverManager.getConnection(url, user, password);
            System.out.println("连接成功！");
            conn.close();
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
